home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Human Interface Toolbox / HandyScrollingSample / MakeFile < prev    next >
Encoding:
Makefile  |  2000-09-28  |  4.4 KB  |  106 lines  |  [TEXT/MPS ]

  1. # /*
  2. #     File: MakeFile
  3. #     
  4. #     Description:
  5. #         MPW build rules for the Handy Scrolling Sample application.
  6. #     Copyright:
  7. #         © Copyright 2000 Apple Computer, Inc. All rights reserved.
  8. #     
  9. #     Disclaimer:
  10. #         IMPORTANT:  This Apple software is supplied to you by Apple Computer, Inc.
  11. #         ("Apple") in consideration of your agreement to the following terms, and your
  12. #         use, installation, modification or redistribution of this Apple software
  13. #         constitutes acceptance of these terms.  If you do not agree with these terms,
  14. #         please do not use, install, modify or redistribute this Apple software.
  15. #         In consideration of your agreement to abide by the following terms, and subject
  16. #         to these terms, Apple grants you a personal, non-exclusive license, under Apple’s
  17. #         copyrights in this original Apple software (the "Apple Software"), to use,
  18. #         reproduce, modify and redistribute the Apple Software, with or without
  19. #         modifications, in source and/or binary forms; provided that if you redistribute
  20. #         the Apple Software in its entirety and without modifications, you must retain
  21. #         this notice and the following text and disclaimers in all such redistributions of
  22. #         the Apple Software.  Neither the name, trademarks, service marks or logos of
  23. #         Apple Computer, Inc. may be used to endorse or promote products derived from the
  24. #         Apple Software without specific prior written permission from Apple.  Except as
  25. #         expressly stated in this notice, no other rights or licenses, express or implied,
  26. #         are granted by Apple herein, including but not limited to any patent rights that
  27. #         may be infringed by your derivative works or by other works in which the Apple
  28. #         Software may be incorporated.
  29. #         The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO
  30. #         WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
  31. #         WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  32. #         PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
  33. #         COMBINATION WITH YOUR PRODUCTS.
  34. #         IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
  35. #         CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  36. #         GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. #         ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
  38. #         OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
  39. #         (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
  40. #         ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  41. #     Change History (most recent first):
  42. #         Tue, Feb 8, 2000 -- created
  43. # */
  44.  
  45. # PPCObjects contains the names of all the powerpc object files
  46. # generated by the C compiler.  We put all the object files in a
  47. # directory called 'obj'
  48. PPCObjects = :obj:HandySample.c.ppc ∂
  49.     :obj:HandyWindow.c.ppc ∂
  50.     :obj:SampleUtils.c.ppc
  51.  
  52. # PowerPCLibs contains the names of all the powerpc library files
  53. # linked to this project
  54. PowerPCLibs = {SharedLibraries}CarbonLib
  55.  
  56.  
  57. # CCppc contains the C compiler comand we use for compiling
  58. # the source files.
  59. CCppc  = MrC -w 35 -align power -proto strict -d TARGET_API_MAC_CARBON
  60.  
  61. # RezFiles contains a list of the rez files used in this build.
  62. RezFiles = HandySample.r
  63.  
  64. # Resources contains a list of all the resource and rez files
  65. # used to build the application
  66. Resources = {RezFiles} HandySample.rsrc
  67.  
  68. # resources
  69.  
  70. HandySample ƒƒ {Resources} {PPCObjects}
  71.     Rez -t "APPL" -i "{RIncludes}" -o HandySample {RezFiles}
  72.  
  73. # object code
  74.  
  75. HandySample ƒƒ {Resources} {PPCObjects}
  76.     PPCLink -o HandySample -m main ∂
  77.         {PPCObjects} ∂
  78.         {PowerPCLibs}
  79.  
  80. # no bundle
  81.  
  82. HandySample ƒƒ {Resources} {PPCObjects}
  83.     SetFile -t 'APPL' -c '????' -a ib HandySample
  84.  
  85. # source code
  86.  
  87. :obj:HandySample.c.ppc ƒ  HandySample.c HandySample.h SampleUtils.h :obj:make.com
  88.     {CCppc} HandySample.c -o :obj:HandySample.c.ppc
  89.  
  90. :obj:HandyWindow.c.ppc ƒ  HandyWindow.c HandyWindow.h SampleUtils.h :obj:make.com
  91.     {CCppc} HandyWindow.c -o :obj:HandyWindow.c.ppc
  92.  
  93. :obj:SampleUtils.c.ppc ƒ  SampleUtils.c SampleUtils.h :obj:make.com
  94.     {CCppc} SampleUtils.c -o :obj:SampleUtils.c.ppc
  95.  
  96.  
  97. ### objects folder
  98. :obj:make.com ƒ MakeFile
  99.     ( NewFolder obj || set status 0 ) ∑ dev:null
  100.     Echo "HandySample 1.0" > :obj:make.com
  101.